<template>
  <div class="home-container">
    <el-row :gutter="20">
      <el-col :span="24">
        <el-card class="welcome-card">
          <h1>欢迎使用权限管理系统</h1>
          <p>这是一个基于Vue 3和FastAPI的现代化权限管理系统</p>
          <el-button type="primary" @click="$router.push('/login')">
            开始使用
          </el-button>
        </el-card>
      </el-col>
    </el-row>
    
    <el-row :gutter="20" class="feature-row">
      <el-col :span="8">
        <el-card>
          <template #header>
            <div class="card-header">
              <span>用户管理</span>
            </div>
          </template>
          <div class="card-content">
            <p>完整的用户管理功能，包括用户创建、编辑、删除等操作</p>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card>
          <template #header>
            <div class="card-header">
              <span>角色管理</span>
            </div>
          </template>
          <div class="card-content">
            <p>灵活的角色管理，支持角色创建、权限分配等功能</p>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card>
          <template #header>
            <div class="card-header">
              <span>权限控制</span>
            </div>
          </template>
          <div class="card-content">
            <p>细粒度的权限控制，确保系统安全性</p>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<style scoped>
.home-container {
  padding: 20px;
}

.welcome-card {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-card h1 {
  margin-bottom: 20px;
  color: #409EFF;
}

.welcome-card p {
  margin-bottom: 30px;
  color: #606266;
}

.feature-row {
  margin-top: 40px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  text-align: center;
  color: #606266;
}
</style> 